package com.bnz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangye
 * @since 2023-03-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "eid", type = IdType.AUTO)
    private Integer eid;

    private String ename;

    private LocalDate bdate;

    private String sex;

    private String city;

    private Integer did;
    @TableField(exist = false)      // 表示不是表中的字段也能用
    private String dname;

}
